﻿using UnityEngine;
using System.Collections;

public class AnimationProgress : MonoBehaviour {
    public float animationProgress = 0;
	public delegate void BiteDelegate();
    public BiteDelegate biteDelegate;

    public delegate void DestroyDelegate();
    public DestroyDelegate destroyDelegate;
    // Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public void byteThatMotherfucker()
    {
       // Debug.Break();
        if (biteDelegate != null)
            biteDelegate();
    }

    public void MyJobHereIsDone()
    {
        if (destroyDelegate != null)
            destroyDelegate();
    }
}
